package com.starlink.model.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.starlink.common.domain.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author zhanghong
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("mall_integration")
public class MallIntegrationDO extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    /** 运费模板ID */
    @TableField("free_template_id")
    private Long freeTemplateId;
    /** 商品名称 */
    @TableField("title")
    private String title;
    /** 商品图片 */
    @TableField("picture")
    private String picture;
    /** 商品ID */
    @TableField("articles_id")
    private Long articlesId;
    /** 规格ID */
    @TableField("specification_id")
    private Long specificationId;
    /** 支付类型 1积分支付 2积分+钱 */
    @TableField("payment_type")
    private Integer paymentType;
    /** 积分价格 */
    @TableField("integral_price")
    private Long integralPrice;
    /** 金钱价格 */
    @TableField("price")
    private BigDecimal price;
    /** 兑换库存 */
    @TableField("exchange_inventory")
    private Long exchangeInventory;
    /** 剩余库存 */
    @TableField("surplus_inventory")
    private Long surplusInventory;
    /** 商品类别 1书籍 2周边 */
    @TableField("articles_category")
    private Integer articlesCategory;
    /** 是否上架 0否 1是 */
    @TableField("on_the_shelf")
    private Integer onTheShelf;
}
